package com.cmb;

public class BackstagePassProduct extends Product {
    public BackstagePassProduct(String name, int sellIn, int quality) {
        super(name, sellIn, quality);
    }

    @Override
    public void update() {
        int quality = getQuality();
        setQuality(++quality);
        int sellIn = getSellIn();
        setSellIn(--sellIn);
    }
}
